package com.project.service.impl;

import com.project.bean.CommentsBean;
import com.project.service.ICommentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class CommentsServiceImpl implements ICommentsService {
    @Autowired
    private ICommentsMapper mapper;
    @Override
    public void add(CommentsBean comment) {
        mapper.insert(comment);
    }
}
